Home

Operator Usage

Name

measure-currency

Description

measure-currency sp
measures the "currency" used by a superposition
Ie, the sum of the coefficients of all the kets in the given superposition
If the superposition is "clean" then measure-currency is the same as the how-many operator


Examples

measure-currency (3|a> + 1.2|b> + 0.1|c>)
    |number: 4.3>


See also

Operator type

core normal